<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>考研数据详情页</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">

    <!-- Tailwind 配置 -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#165DFF',
                        secondary: '#FF7D00',
                        success: '#00B42A',
                        warning: '#FF7D00',
                        danger: '#F53F3F',
                        info: '#86909C',
                        dark: '#1D2129',
                        light: '#F2F3F5'
                    },
                    fontFamily: {
                        inter: ['Inter', 'sans-serif'],
                    },
                }
            }
        }
    </script>

    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }

            .card-shadow {
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            }

            .hover-scale {
                transition: transform 0.3s ease;
            }

            .hover-scale:hover {
                transform: scale(1.02);
            }

            .chart-container {
                height: 400px;
                width: 100%;
            }
        }
    </style>
</head>
<body class="font-inter bg-gray-50 text-dark">
<!-- 导航栏 -->
<nav class="fixed w-full bg-white shadow-md z-50 transition-all duration-300" id="navbar">
    <div class="container mx-auto px-4 py-3 flex justify-between items-center">
        <div class="flex items-center space-x-2">
            <i class="fa fa-graduation-cap text-primary text-2xl"></i>
            <h1 class="text-xl font-bold">考研数据可视化分析</h1>
        </div>
        <div class="hidden md:flex items-center space-x-6">
            <a href="../index.jsp" class="text-dark hover:text-primary transition-colors">首页</a>
            <a href="charts.jsp.bak" class="text-dark hover:text-primary transition-colors">数据图表</a>
            <a href="#" class="text-dark hover:text-primary transition-colors">数据分析</a>
            <a href="#" class="text-dark hover:text-primary transition-colors">关于系统</a>
        </div>
        <div class="md:hidden">
            <button class="text-dark hover:text-primary">
                <i class="fa fa-bars text-xl"></i>
            </button>
        </div>
    </div>
</nav>

<!-- 页面内容 -->
<div class="pt-24 pb-16">
    <div class="container mx-auto px-4">
        <!-- 面包屑导航 -->
        <div class="mb-6">
            <nav class="flex" aria-label="Breadcrumb">
                <ol class="inline-flex items-center space-x-1 md:space-x-3">
                    <li class="inline-flex items-center">
                        <a href="../index.jsp"
                           class="inline-flex items-center text-sm font-medium text-gray-500 hover:text-primary">
                            <i class="fa fa-home mr-2"></i>
                            首页
                        </a>
                    </li>
                    <li>
                        <div class="flex items-center">
                            <i class="fa fa-angle-right text-gray-400 mx-2"></i>
                            <a href="charts.jsp.bak"
                               class="text-sm font-medium text-gray-500 hover:text-primary">数据图表</a>
                        </div>
                    </li>
                    <li aria-current="page">
                        <div class="flex items-center">
                            <i class="fa fa-angle-right text-gray-400 mx-2"></i>
                            <span class="text-sm font-medium text-primary">数据详情</span>
                        </div>
                    </li>
                </ol>
            </nav>
        </div>

        <!-- 数据详情卡片 -->
        <div class="bg-white rounded-xl p-6 card-shadow mb-8">
            <div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-6">
                <div>
                    <h2 class="text-2xl font-bold mb-2">考研数据详情</h2>
                    <p class="text-gray-500">详细展示各学校考研分数线、调剂信息及历年数据变化</p>
                </div>
                <div class="mt-4 md:mt-0">
                    <button class="bg-primary text-white px-4 py-2 rounded-lg hover:bg-primary/90 transition-colors flex items-center">
                        <i class="fa fa-download mr-2"></i> 导出数据
                    </button>
                </div>
            </div>

            <!-- 数据详情表格 -->
            <div class="overflow-x-auto">
                <table class="min-w-full divide-y divide-gray-200">
                    <thead class="bg-gray-50">
                    <tr>
                        <th scope="col"
                            class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">学校名称
                        </th>
                        <th scope="col"
                            class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">学科门类
                        </th>
                        <th scope="col"
                            class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
                            2023分数线
                        </th>
                        <th scope="col"
                            class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
                            2022分数线
                        </th>
                        <th scope="col"
                            class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">分数线变化
                        </th>
                        <th scope="col"
                            class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">调剂名额
                        </th>
                        <th scope="col"
                            class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">调剂热度
                        </th>
                    </tr>
                    </thead>
                    <tbody class="bg-white divide-y divide-gray-200">
                    <tr>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="flex items-center">
                                <div class="flex-shrink-0 h-10 w-10">
                                    <img class="h-10 w-10 rounded-full" src="https://picsum.photos/seed/pku/100/100"
                                         alt="北京大学">
                                </div>
                                <div class="ml-4">
                                    <div class="text-sm font-medium text-gray-900">北京大学</div>
                                    <div class="text-sm text-gray-500">北京</div>
                                </div>
                            </div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">工学</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">365</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">360</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm font-medium text-green-600">+5</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">70</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="flex items-center">
                                <div class="w-full bg-gray-200 rounded-full h-2.5">
                                    <div class="bg-red-600 h-2.5 rounded-full" style="width: 90%"></div>
                                </div>
                                <span class="ml-2 text-sm font-medium text-gray-900">90%</span>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="flex items-center">
                                <div class="flex-shrink-0 h-10 w-10">
                                    <img class="h-10 w-10 rounded-full" src="https://picsum.photos/seed/tsh/100/100"
                                         alt="清华大学">
                                </div>
                                <div class="ml-4">
                                    <div class="text-sm font-medium text-gray-900">清华大学</div>
                                    <div class="text-sm text-gray-500">北京</div>
                                </div>
                            </div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">工学</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">360</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">355</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm font-medium text-green-600">+5</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">65</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="flex items-center">
                                <div class="w-full bg-gray-200 rounded-full h-2.5">
                                    <div class="bg-red-600 h-2.5 rounded-full" style="width: 88%"></div>
                                </div>
                                <span class="ml-2 text-sm font-medium text-gray-900">88%</span>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="flex items-center">
                                <div class="flex-shrink-0 h-10 w-10">
                                    <img class="h-10 w-10 rounded-full" src="https://picsum.photos/seed/fud/100/100"
                                         alt="复旦大学">
                                </div>
                                <div class="ml-4">
                                    <div class="text-sm font-medium text-gray-900">复旦大学</div>
                                    <div class="text-sm text-gray-500">上海</div>
                                </div>
                            </div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">管理学</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">355</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">350</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm font-medium text-green-600">+5</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">55</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="flex items-center">
                                <div class="w-full bg-gray-200 rounded-full h-2.5">
                                    <div class="bg-red-600 h-2.5 rounded-full" style="width: 85%"></div>
                                </div>
                                <span class="ml-2 text-sm font-medium text-gray-900">85%</span>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="flex items-center">
                                <div class="flex-shrink-0 h-10 w-10">
                                    <img class="h-10 w-10 rounded-full" src="https://picsum.photos/seed/sjtu/100/100"
                                         alt="上海交通大学">
                                </div>
                                <div class="ml-4">
                                    <div class="text-sm font-medium text-gray-900">上海交通大学</div>
                                    <div class="text-sm text-gray-500">上海</div>
                                </div>
                            </div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">医学</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">350</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">345</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm font-medium text-green-600">+5</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">50</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="flex items-center">
                                <div class="w-full bg-gray-200 rounded-full h-2.5">
                                    <div class="bg-red-600 h-2.5 rounded-full" style="width: 82%"></div>
                                </div>
                                <span class="ml-2 text-sm font-medium text-gray-900">82%</span>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="flex items-center">
                                <div class="flex-shrink-0 h-10 w-10">
                                    <img class="h-10 w-10 rounded-full" src="https://picsum.photos/seed/zju/100/100"
                                         alt="浙江大学">
                                </div>
                                <div class="ml-4">
                                    <div class="text-sm font-medium text-gray-900">浙江大学</div>
                                    <div class="text-sm text-gray-500">浙江</div>
                                </div>
                            </div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">理学</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">345</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">340</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm font-medium text-green-600">+5</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">45</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="flex items-center">
                                <div class="w-full bg-gray-200 rounded-full h-2.5">
                                    <div class="bg-red-600 h-2.5 rounded-full" style="width: 80%"></div>
                                </div>
                                <span class="ml-2 text-sm font-medium text-gray-900">80%</span>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>

            <!-- 分页 -->
            <div class="flex items-center justify-between px-4 py-3 sm:px-6 mt-6">
                <div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
                    <div>
                        <p class="text-sm text-gray-700">
                            显示第 <span class="font-medium">1</span> 至 <span class="font-medium">5</span> 条，共 <span
                                class="font-medium">328</span> 条结果
                        </p>
                    </div>
                    <div>
                        <nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
                            <a href="#"
                               class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
                                <span class="sr-only">上一页</span>
                                <i class="fa fa-chevron-left"></i>
                            </a>
                            <a href="#" aria-current="page"
                               class="z-10 bg-primary text-white relative inline-flex items-center px-4 py-2 border border-primary text-sm font-medium">1</a>
                            <a href="#"
                               class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">2</a>
                            <a href="#"
                               class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">3</a>
                            <span class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700">...</span>
                            <a href="#"
                               class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">66</a>
                            <a href="#"
                               class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
                                <span class="sr-only">下一页</span>
                                <i class="fa fa-chevron-right"></i>
                            </a>
                        </nav>
                    </div>
                </div>
            </div>
        </div>

        <!-- 详细图表区域 -->
        <div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8">
            <!-- 学校历年分数线趋势图 -->
            <div class="bg-white rounded-xl p-6 card-shadow">
                <div class="flex justify-between items-center mb-4">
                    <h3 class="text-xl font-semibold">学校历年分数线趋势</h3>
                    <div class="text-sm text-gray-500">
                        <i class="fa fa-info-circle"></i> 展示各学校近五年分数线变化趋势
                    </div>
                </div>
                <div class="chart-container" id="schoolScoreTrendChart"></div>
            </div>

            <!-- 调剂竞争度分析图 -->
            <div class="bg-white rounded-xl p-6 card-shadow">
                <div class="flex justify-between items-center mb-4">
                    <h3 class="text-xl font-semibold">调剂竞争度分析</h3>
                    <div class="text-sm text-gray-500">
                        <i class="fa fa-info-circle"></i> 展示各学校调剂报考比例
                    </div>
                </div>
                <div class="chart-container" id="adjustmentCompetitionChart"></div>
            </div>
        </div>

        <!-- 学校详情卡片 -->
        <div class="bg-white rounded-xl p-6 card-shadow mb-8">
            <div class="flex flex-col md:flex-row">
                <div class="md:w-1/3 mb-6 md:mb-0 md:pr-6">
                    <div class="bg-gray-100 rounded-lg overflow-hidden mb-4">
                        <img src="https://picsum.photos/seed/school/600/400" alt="学校风景"
                             class="w-full h-48 object-cover">
                    </div>
                    <div class="bg-primary/10 rounded-lg p-4 mb-4">
                        <h4 class="text-lg font-semibold mb-2">基本信息</h4>
                        <ul class="space-y-2">
                            <li class="flex items-start">
                                <i class="fa fa-map-marker text-primary mt-1 mr-2"></i>
                                <span>北京市海淀区</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fa fa-university text-primary mt-1 mr-2"></i>
                                <span>教育部直属重点大学</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fa fa-graduation-cap text-primary mt-1 mr-2"></i>
                                <span>985、211、双一流高校</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fa fa-clock-o text-primary mt-1 mr-2"></i>
                                <span>创建于1911年</span>
                            </li>
                        </ul>
                    </div>
                    <div class="bg-gray-100 rounded-lg p-4">
                        <h4 class="text-lg font-semibold mb-2">联系方式</h4>
                        <ul class="space-y-2">
                            <li class="flex items-start">
                                <i class="fa fa-phone text-gray-500 mt-1 mr-2"></i>
                                <span>研招办电话：010-12345678</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fa fa-envelope-o text-gray-500 mt-1 mr-2"></i>
                                <span>邮箱：yzb@example.edu.cn</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fa fa-globe text-gray-500 mt-1 mr-2"></i>
                                <span>网址：www.example.edu.cn</span>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="md:w-2/3">
                    <h3 class="text-2xl font-bold mb-4">北京大学</h3>
                    <div class="flex items-center mb-6">
                        <div class="flex items-center mr-4">
                            <i class="fa fa-line-chart text-primary mr-2"></i>
                            <span class="font-semibold">综合评分：9.5/10</span>
                        </div>
                        <div class="flex items-center mr-4">
                            <i class="fa fa-users text-primary mr-2"></i>
                            <span class="font-semibold">调剂热度：90%</span>
                        </div>
                        <div class="flex items-center">
                            <i class="fa fa-trophy text-primary mr-2"></i>
                            <span class="font-semibold">学科排名：Top 5</span>
                        </div>
                    </div>

                    <div class="mb-6">
                        <h4 class="text-lg font-semibold mb-2">学校简介</h4>
                        <p class="text-gray-700 mb-4">
                            北京大学创办于1898年，初名京师大学堂，是中国近代第一所国立综合性大学，也是当时中国的最高教育行政机关。辛亥革命后，于1912年改为现名。</p>
                        <p class="text-gray-700">
                            作为中国的顶尖学府，北京大学在多个学科领域拥有卓越的学术水平和科研实力，被誉为"中国的哈佛"。学校拥有优秀的师资队伍和完善的教学设施，为学生提供了优质的学习和研究环境。</p>
                    </div>

                    <div class="mb-6">
                        <h4 class="text-lg font-semibold mb-2">2023年招生情况</h4>
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                            <div class="bg-gray-50 p-4 rounded-lg">
                                <h5 class="font-semibold mb-2">计划招生人数</h5>
                                <p class="text-2xl font-bold">5,200人</p>
                            </div>
                            <div class="bg-gray-50 p-4 rounded-lg">
                                <h5 class="font-semibold mb-2">实际报考人数</h5>
                                <p class="text-2xl font-bold">32,500人</p>
                            </div>
                            <div class="bg-gray-50 p-4 rounded-lg">
                                <h5 class="font-semibold mb-2">报录比例</h5>
                                <p class="text-2xl font-bold">6.25:1</p>
                            </div>
                            <div class="bg-gray-50 p-4 rounded-lg">
                                <h5 class="font-semibold mb-2">调剂名额</h5>
                                <p class="text-2xl font-bold">70人</p>
                            </div>
                        </div>
                    </div>

                    <div>
                        <h4 class="text-lg font-semibold mb-2">2023年调剂信息</h4>
                        <div class="bg-gray-50 p-4 rounded-lg mb-4">
                            <h5 class="font-semibold mb-2">调剂专业</h5>
                            <div class="flex flex-wrap gap-2">
                                <span class="bg-primary/10 text-primary px-3 py-1 rounded-full text-sm">计算机科学与技术</span>
                                <span class="bg-primary/10 text-primary px-3 py-1 rounded-full text-sm">电子信息工程</span>
                                <span class="bg-primary/10 text-primary px-3 py-1 rounded-full text-sm">控制科学与工程</span>
                                <span class="bg-primary/10 text-primary px-3 py-1 rounded-full text-sm">计算机科学与技术</span>
                                <span class="bg-primary/10 text-primary px-3 py-1 rounded-full text-sm">电子信息工程</span>
                                <span class="bg-primary/10 text-primary px-3 py-1 rounded-full text-sm">控制科学与工程</span>
                                <span class="bg-primary/10 text-primary px-3 py-1 rounded-full text-sm">软件工程</span>
                                <span class="bg-primary/10 text-primary px-3 py-1 rounded-full text-sm">人工智能</span>
                                <span class="bg-primary/10 text-primary px-3 py-1 rounded-full text-sm">数据科学与大数据技术</span>
                            </div>
                        </div>
                        <div class="bg-gray-50 p-4 rounded-lg mb-4">
                            <h5 class="font-semibold mb-2">调剂要求</h5>
                            <ul class="list-disc pl-5 space-y-1">
                                <li>初试成绩达到国家线A类标准</li>
                                <li>本科专业与申请调剂专业相近或相关</li>
                                <li>优先考虑985、211高校毕业生</li>
                                <li>具有相关科研成果或竞赛获奖经历者优先</li>
                                <li>外语水平良好，通过CET-6或具有相当水平</li>
                            </ul>
                        </div>
                        <div class="bg-gray-50 p-4 rounded-lg">
                            <h5 class="font-semibold mb-2">调剂流程</h5>
                            <ol class="list-decimal pl-5 space-y-1">
                                <li>3月20日-3月31日：在中国研究生招生信息网填写调剂志愿</li>
                                <li>4月1日-4月5日：学校审核调剂申请并发送复试通知</li>
                                <li>4月6日-4月10日：组织调剂复试（含笔试和面试）</li>
                                <li>4月11日-4月15日：公布复试结果，发放待录取通知</li>
                                <li>4月16日-4月20日：待录取考生完成确认手续</li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 评论和讨论区 -->
        <div class="bg-white rounded-xl p-6 card-shadow">
            <div class="flex justify-between items-center mb-6">
                <h3 class="text-xl font-semibold">评论和讨论区</h3>
                <div class="text-sm text-gray-500">
                    共 <span class="font-semibold">42</span> 条评论
                </div>
            </div>

            <!-- 评论输入框 -->
            <div class="mb-8">
                <div class="flex items-start">
                    <img class="h-10 w-10 rounded-full mr-4" src="https://picsum.photos/seed/user/100/100"
                         alt="用户头像">
                    <div class="flex-1">
                        <textarea
                                class="w-full border border-gray-300 rounded-lg p-3 focus:ring-2 focus:ring-primary focus:border-primary resize-none"
                                rows="3" placeholder="分享你的看法或提问..."></textarea>
                        <div class="flex justify-end mt-2">
                            <button class="bg-primary text-white px-4 py-2 rounded-lg hover:bg-primary/90 transition-colors">
                                发表评论
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 评论列表 -->
            <div class="space-y-6">
                <!-- 评论1 -->
                <div class="flex">
                    <img class="h-10 w-10 rounded-full mr-4" src="https://picsum.photos/seed/comment1/100/100"
                         alt="用户头像">
                    <div class="flex-1">
                        <div class="flex items-center justify-between mb-1">
                            <h4 class="font-medium">李同学</h4>
                            <span class="text-sm text-gray-500">2023-05-15 14:30</span>
                        </div>
                        <p class="text-gray-700 mb-2">
                            北京大学的调剂竞争真的很激烈，去年我同学370分都没调剂成功，大家一定要尽早准备。</p>
                        <div class="flex items-center space-x-4 text-sm">
                            <button class="text-gray-500 hover:text-primary flex items-center">
                                <i class="fa fa-thumbs-up mr-1"></i> 24
                            </button>
                            <button class="text-gray-500 hover:text-primary flex items-center">
                                <i class="fa fa-comment-o mr-1"></i> 回复
                            </button>
                        </div>

                        <!-- 回复 -->
                        <div class="mt-4 ml-6 space-y-4">
                            <div class="flex">
                                <img class="h-8 w-8 rounded-full mr-3" src="https://picsum.photos/seed/reply1/100/100"
                                     alt="用户头像">
                                <div class="flex-1">
                                    <div class="flex items-center justify-between mb-1">
                                        <h5 class="font-medium text-sm">王同学</h5>
                                        <span class="text-xs text-gray-500">2023-05-16 09:15</span>
                                    </div>
                                    <p class="text-gray-700 text-sm">
                                        是的，尤其是计算机相关专业，370分确实有点悬，建议同时关注其他学校。</p>
                                    <div class="flex items-center space-x-4 text-xs mt-1">
                                        <button class="text-gray-500 hover:text-primary flex items-center">
                                            <i class="fa fa-thumbs-up mr-1"></i> 8
                                        </button>
                                        <button class="text-gray-500 hover:text-primary flex items-center">
                                            <i class="fa fa-comment-o mr-1"></i> 回复
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 评论2 -->
                <div class="flex">
                    <img class="h-10 w-10 rounded-full mr-4" src="https://picsum.photos/seed/comment2/100/100"
                         alt="用户头像">
                    <div class="flex-1">
                        <div class="flex items-center justify-between mb-1">
                            <h4 class="font-medium">赵同学</h4>
                            <span class="text-sm text-gray-500">2023-05-10 16:45</span>
                        </div>
                        <p class="text-gray-700 mb-2">
                            请问有没有同学知道北京大学的调剂复试都考什么内容？是侧重于专业知识还是综合素质？</p>
                        <div class="flex items-center space-x-4 text-sm">
                            <button class="text-gray-500 hover:text-primary flex items-center">
                                <i class="fa fa-thumbs-up mr-1"></i> 15
                            </button>
                            <button class="text-gray-500 hover:text-primary flex items-center">
                                <i class="fa fa-comment-o mr-1"></i> 回复
                            </button>
                        </div>

                        <!-- 回复 -->
                        <div class="mt-4 ml-6 space-y-4">
                            <div class="flex">
                                <img class="h-8 w-8 rounded-full mr-3" src="https://picsum.photos/seed/reply2/100/100"
                                     alt="用户头像">
                                <div class="flex-1">
                                    <div class="flex items-center justify-between mb-1">
                                        <h5 class="font-medium text-sm">张学长</h5>
                                        <span class="text-xs text-gray-500">2023-05-12 11:20</span>
                                    </div>
                                    <p class="text-gray-700 text-sm">
                                        我是去年调剂到北大的，复试包括两部分：专业笔试和综合面试。笔试主要考察专业基础知识，面试则侧重于科研能力和综合素质。建议准备一份详细的个人简历，重点突出你的科研经历和项目经验。</p>
                                    <div class="flex items-center space-x-4 text-xs mt-1">
                                        <button class="text-gray-500 hover:text-primary flex items-center">
                                            <i class="fa fa-thumbs-up mr-1"></i> 22
                                        </button>
                                        <button class="text-gray-500 hover:text-primary flex items-center">
                                            <i class="fa fa-comment-o mr-1"></i> 回复
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 评论3 -->
                <div class="flex">
                    <img class="h-10 w-10 rounded-full mr-4" src="https://picsum.photos/seed/comment3/100/100"
                         alt="用户头像">
                    <div class="flex-1">
                        <div class="flex items-center justify-between mb-1">
                            <h4 class="font-medium">陈同学</h4>
                            <span class="text-sm text-gray-500">2023-05-05 10:20</span>
                        </div>
                        <p class="text-gray-700 mb-2">北大的调剂信息一般什么时候公布？需要提前联系导师吗？</p>
                        <div class="flex items-center space-x-4 text-sm">
                            <button class="text-gray-500 hover:text-primary flex items-center">
                                <i class="fa fa-thumbs-up mr-1"></i> 18
                            </button>
                            <button class="text-gray-500 hover:text-primary flex items-center">
                                <i class="fa fa-comment-o mr-1"></i> 回复
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 加载更多 -->
            <div class="text-center mt-8">
                <button class="text-primary hover:text-primary/80 flex items-center mx-auto">
                    <span>加载更多评论</span>
                    <i class="fa fa-chevron-down ml-2"></i>
                </button>
            </div>
        </div>
    </div>
</div>

<!-- 页脚 -->
<footer class="bg-dark text-white py-12">
    <div class="container mx-auto px-4">
        <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
            <div>
                <div class="flex items-center space-x-2 mb-4">
                    <i class="fa fa-graduation-cap text-primary text-2xl"></i>
                    <h3 class="text-xl font-bold">考研数据可视化分析</h3>
                </div>
                <p class="text-gray-400 mb-4">
                    助力考研学子科学备考，圆梦理想院校
                </p>
                <div class="flex space-x-4">
                    <a href="#" class="text-gray-400 hover:text-white transition-colors">
                        <i class="fa fa-weibo"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-white transition-colors">
                        <i class="fa fa-wechat"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-white transition-colors">
                        <i class="fa fa-github"></i>
                    </a>
                </div>
            </div>
            <div>
                <h4 class="text-lg font-semibold mb-4">快速链接</h4>
                <ul class="space-y-2">
                    <li><a href="../index.jsp" class="text-gray-400 hover:text-white transition-colors">首页</a></li>
                    <%--                    <li><a href="charts.jsp.bak" class="text-gray-400 hover:text-white transition-colors">数据图表</a></li>--%>
                    <li><a href="charts" class="text-gray-400 hover:text-white transition-colors">数据图表</a></li>
                    <li><a href="#" class="text-gray-400 hover:text-white transition-colors">数据分析</a></li>
                    <li><a href="#" class="text-gray-400 hover:text-white transition-colors">关于系统</a></li>
                </ul>
            </div>
            <div>
                <h4 class="text-lg font-semibold mb-4">数据来源</h4>
                <ul class="space-y-2">
                    <li><a href="#" class="text-gray-400 hover:text-white transition-colors">教育部官网</a></li>
                    <li><a href="#" class="text-gray-400 hover:text-white transition-colors">各高校研究生院</a></li>
                    <li><a href="#" class="text-gray-400 hover:text-white transition-colors">权威考研机构</a></li>
                </ul>
            </div>
            <div>
                <h4 class="text-lg font-semibold mb-4">联系我们</h4>
                <ul class="space-y-2">
                    <li class="flex items-center text-gray-400">
                        <i class="fa fa-envelope-o mr-2"></i> support@kaoyan-analysis.com
                    </li>
                    <li class="flex items-center text-gray-400">
                        <i class="fa fa-phone mr-2"></i> 400-123-4567
                    </li>
                    <li class="flex items-center text-gray-400">
                        <i class="fa fa-map-marker mr-2"></i> 北京市海淀区中关村大街1号
                    </li>
                </ul>
            </div>
        </div>
        <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
            <p>© 2025 考研数据可视化分析系统 | 数据仅供参考，以官方发布为准</p>
        </div>
    </div>
</footer>

<!-- 返回顶部按钮 -->
<button id="backToTop"
        class="fixed bottom-6 right-6 bg-primary text-white w-12 h-12 rounded-full flex items-center justify-center shadow-lg opacity-0 invisible transition-all duration-300">
    <i class="fa fa-arrow-up"></i>
</button>

<!-- 详情页图表初始化脚本 -->
<script>
    // 导航栏滚动效果
    window.addEventListener('scroll', function () {
        const navbar = document.getElementById('navbar');
        const backToTop = document.getElementById('backToTop');

        if (window.scrollY > 100) {
            navbar.classList.add('py-2');
            navbar.classList.remove('py-3');
            backToTop.classList.remove('opacity-0', 'invisible');
            backToTop.classList.add('opacity-100', 'visible');
        } else {
            navbar.classList.add('py-3');
            navbar.classList.remove('py-2');
            backToTop.classList.add('opacity-0', 'invisible');
            backToTop.classList.remove('opacity-100', 'visible');
        }
    });

    // 返回顶部按钮点击事件
    document.getElementById('backToTop').addEventListener('click', function () {
        window.scrollTo({
            top: 0,
            behavior: 'smooth'
        });
    });

    // 当页面加载完成后初始化图表
    document.addEventListener('DOMContentLoaded', function () {
        // 检查当前页面是否包含图表容器
        if (document.getElementById('schoolScoreTrendChart')) {
            initDetailCharts();
        }
    });

    // 初始化详情页图表
    function initDetailCharts() {
        // 学校历年分数线趋势图
        const schoolScoreTrendChart = echarts.init(document.getElementById('schoolScoreTrendChart'));
        schoolScoreTrendChart.setOption({
            title: {
                text: '学校历年分数线趋势',
                left: 'center',
                textStyle: {
                    fontWeight: 'bold',
                    color: '#1D2129'
                }
            },
            tooltip: {
                trigger: 'axis'
            },
            legend: {
                data: ['北京大学', '清华大学', '复旦大学', '上海交通大学', '浙江大学'],
                top: '5%'
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: {
                type: 'category',
                data: ['2019', '2020', '2021', '2022', '2023']
            },
            yAxis: {
                type: 'value',
                name: '分数线',
                min: 250,
                max: 400,
                interval: 30
            },
            series: [
                {
                    name: '北京大学',
                    type: 'line',
                    data: [350, 355, 360, 360, 365],
                    smooth: true,
                    itemStyle: {
                        color: '#165DFF'
                    }
                },
                {
                    name: '清华大学',
                    type: 'line',
                    data: [345, 350, 355, 355, 360],
                    smooth: true,
                    itemStyle: {
                        color: '#FF7D00'
                    }
                },
                {
                    name: '复旦大学',
                    type: 'line',
                    data: [340, 345, 350, 350, 355],
                    smooth: true,
                    itemStyle: {
                        color: '#00B42A'
                    }
                },
                {
                    name: '上海交通大学',
                    type: 'line',
                    data: [335, 340, 345, 345, 350],
                    smooth: true,
                    itemStyle: {
                        color: '#F53F3F'
                    }
                },
                {
                    name: '浙江大学',
                    type: 'line',
                    data: [330, 335, 340, 340, 345],
                    smooth: true,
                    itemStyle: {
                        color: '#722ED1'
                    }
                }
            ]
        });

        // 调剂竞争度分析图
        const adjustmentCompetitionChart = echarts.init(document.getElementById('adjustmentCompetitionChart'));
        adjustmentCompetitionChart.setOption({
            title: {
                text: '调剂竞争度分析',
                left: 'center',
                textStyle: {
                    fontWeight: 'bold',
                    color: '#1D2129'
                }
            },
            tooltip: {
                trigger: 'item',
                formatter: '{a} <br/>{b}: 报考人数 {c}，竞争比 {d}%'
            },
            legend: {
                top: '5%',
                data: ['北京大学', '清华大学', '复旦大学', '上海交通大学', '浙江大学']
            },
            series: [
                {
                    name: '调剂竞争度',
                    type: 'pie',
                    radius: ['40%', '70%'],
                    avoidLabelOverlap: false,
                    itemStyle: {
                        borderRadius: 10,
                        borderColor: '#fff',
                        borderWidth: 2
                    },
                    label: {
                        show: false,
                        position: 'center'
                    },
                    emphasis: {
                        label: {
                            show: true,
                            fontSize: '18',
                            fontWeight: 'bold'
                        }
                    },
                    labelLine: {
                        show: false
                    },
                    data: [
                        {value: 90, name: '北京大学'},
                        {value: 88, name: '清华大学'},
                        {value: 85, name: '复旦大学'},
                        {value: 82, name: '上海交通大学'},
                        {value: 80, name: '浙江大学'}
                    ]
                }
            ]
        });

        // 响应式处理
        window.addEventListener('resize', function () {
            schoolScoreTrendChart.resize();
            adjustmentCompetitionChart.resize();
        });
    }
</script>
</body>
</html>